<link  type="text/css" rel="Stylesheet" href="css/line.css"/>
<script type="text/javascript">
	document.getElementById('index').className='';
	document.getElementById('car_<?php if($lineclass['fpid'][$cateid]){ echo $lineclass['fpid'][$cateid];}else{echo $cateid;}?>').className='yes';
</script>
<!--info开始-->
<div class="box">
	 <?php $this->load->view('inc/left');?>
    
    <div class="lineR770">
        <div class="line770">
            <div class="lineL506">
                <div style="position:relative;width:500px;height:240px;overflow:hidden;">
                    <div id="AdCycle">
						<?php foreach ($slider_cars as $item){?>
							<a href="<?php echo site_url();?>/car_cate/car_show/<?php echo $item->content;?>" target="_blank"><img src="<?php echo $this->platform->file_url($item->folder.'/'.$item->name.'.'.$item->type);?>" width="550" height="250" /></a>			
						<?php }?>
				 </div>
                    <div id="AdCycleNav" style="z-index:99"></div>
                </div>
            </div>
            <div class="lineR254">
                <h1 class="lineHotTit">推荐线路</h1>
				<ul class="lineHotText">
		<?php				
				$curren_art_id="";
				$i=0;
				foreach ($commend_cars as $item){//推荐文章
						$pics="";
						$links="";
						$pics=$this->platform->file_url($item->folder.'/'.$item->name.'.'.$item->type);
						$links=site_url()."/car_cate/car_show/".$item->id;			
						if(!$pics){$pics="/templates/img/nopic.jpg";}		
		?> 				
					
						  <li><p><a href="<?php echo $links;?>" title="<?php echo $item->car_title;?>" target="_blank"><img lazyload="<?php echo $pics;?>" maxwidth="80" maxheight="60"/></a></p><b><a href="<?php echo $links;?>" title="<?php echo $item->car_title;?>" target="_blank"><?php echo $item->car_title;?></a></b> <span class="money">¥<?php echo $item->per_price;?>/日</span></li>
	<?php				
           			$i++;
				}
		?> 				
			</ul>
            </div>
        </div>
        <div class="lineNavTitle"><?php echo $carclass['classname'][$cateid]?></div>
<?php 
	if(!empty($category_list)){
		$j=1;
		foreach($category_list as $key=>$value){	//$cateid 下的子类
?>       
	    <div class="lineLtext">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="6" class="lineTabName" onClick="location.href='<?php echo site_url();?>/car_cate/sub_carclass/<?php echo $key;?>'"><?php echo $carclass['classname'][$key]?> <span style="position:relative;left:85%;"><a href="<?php echo site_url();?>/car_cate/sub_carclass/<?php echo $key;?>" target="_blank">更多</a></span></td>
              </tr>
              <tr class="lineTabTit">
			  	<td width="643" >租车信息</td>
				<td width="107">车型</td>
                <td width="92" align="center">价格</td>
                <td width="116" align="center">载客</td>
              </tr>
			  <?php foreach($category_list[$key] as $item){	//子类线路?>
				  <tr class="lineTabText">
					<td class="name"><a href="<?php echo site_url()."/car_cate/car_show/".$item->id;?>" title="<?php echo $item->car_title;?>" target="_blank"><?php echo mb_substr($item->car_title,0,32);?>..</a>
						<?php if($item->tuijian){?>
							<span class="lineVirtues_5"></span>
						<?php }?>
					</td>			  
					<td ><?php echo $item->car_model;?></td>
					<td class="linePrice" align="center"><b>¥<?php echo $item->per_price;?>/日</b></td>
					
					<td align="center"><?php echo $item->seating_num;?></td>
				  </tr>
			  <?php }?>
            </table>
        </div>
<?php 		
			$j++;
		}//外部循环
	}
?>	        
    </div>
    <div class="clearit"></div>
</div>
<!--info结束-->

    <?php $this->load->view('inc/footer');?>
</body>
</html>